package com.zg.common.core.service;

import com.zg.common.core.dao.BaseEntity;
import com.zg.common.core.req.AddReq;
import com.zg.common.core.req.EditReq;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/5/22 9:29
 */

public interface IBaseService<T extends BaseEntity> extends IService {


    Long add(AddReq addReq);

    boolean add(T t);

    boolean edit(EditReq editReq);

    boolean edit(T source);

    //V get(Long id);

    boolean remove(List<Long> ids);

    List<T> list(T ...t);


    T get(T t);

    T getById(Long id);
}
